<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>INPUT_RECORD</title>
<meta http-equiv="Content-Type" Content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="../../styles/styles.css">
<script language="javascript" src="../links.js" type="text/javascript"></script>
</head>

<body>

<h1>INPUT_RECORD</h1>
<div class=navbar>
<a href="../index.html">main</a> |
<a href="../structures/index.html">structures</a> |
<a href="index.html">win32 structures</a>
</div>

<div class=shortdescr>
  <p>The <strong>INPUT_RECORD</strong> structure is used to report input events
    in the console input buffer. These records can be read from the input buffer
    by using the <a href="readconsoleinput.html">ReadConsoleInput</a> or
    <a href="peekconsoleinput.html">PeekConsoleInput</a> function, or written to
    the input buffer by using the <a href="writeconsoleinput.html">WriteConsoleInput</a>
  function.</p>
</div>

<pre class=syntax>
typedef struct _INPUT_RECORD {
 WORD EventType;
 union {
    KEY_EVENT_RECORD <a href="key_event_record.html">KeyEvent</a>;
    MOUSE_EVENT_RECORD <a href="mouse_event_record.html">MouseEvent</a>;
    WINDOW_BUFFER_SIZE_RECORD <a href="window_buffer_size_record.html">WindowBufferSizeEvent</a>;
    MENU_EVENT_RECORD <a href="menu_event_record.html">MenuEvent</a>;
    FOCUS_EVENT_RECORD <a href="focus_event_record.html">FocusEvent</a>;
 } Event;
} INPUT_RECORD;
</pre>

<h3>Members</h3>
<div class=descr>

    <div class=dfn>EventType</div>
    <div class=dfndescr>Handle to the type of input event and the event record stored in the Event member.<br>
This member can be one of the following values.

<table class="cont">
<tr class="cont">
  <th class="cont" width="40%">Value</th>
  <th class="cont" width="60%">Description</th></tr>
<tr class="cont"><td class="cont" width="40%">KEY_EVENT</td>
<td class="cont" width="60%">The <strong>Event</strong> member contains a <a href="key_event_record.html">KEY_EVENT_RECORD</a>
  structure with information about a keyboard event.</td>
</tr>
<tr class="cont"><td class="cont" width="40%">MOUSE_EVENT </td>
<td class="cont" width="60%">The <strong>Event</strong> member contains a <a href="mouse_event_record.html">MOUSE_EVENT_RECORD</a>
  structure with information about a mouse movement or button press event.
</td>
</tr>
<tr class="cont"><td class="cont" width="40%">WINDOW_BUFFER_SIZE_EVENT </td>
<td class="cont" width="60%">The <strong>Event</strong> member contains a <a href="window_buffer_size_record.html">WINDOW_BUFFER_SIZE_RECORD</a>
  structure with information about the new size of the screen buffer.
</td>
</tr>
<tr class="cont"><td class="cont" width="40%">MENU_EVENT</td>
<td class="cont" width="60%">The <strong>Event</strong> member contains a <a href="menu_event_record.html">MENU_EVENT_RECORD</a>
  structure. These events are used internally and should be ignored.
</td>
</tr>
<tr class="cont"><td class="cont" width="40%">FOCUS_EVENT</td>
<td class="cont" width="60%">The <strong>Event</strong> member contains a <a href="focus_event_record.html">FOCUS_EVENT_RECORD</a>
  structure. These events are used internally and should be ignored.
</td>
</tr>
<tr class="cont"><td class="cont" width="40%">FARMACRO_KEY_EVENT</td>
<td class="cont" width="60%">The <strong>Event</strong> member contains a <a href="key_event_record.html">KEY_EVENT_RECORD</a>
  structure with information about a keyboard event.
  <font color="red">Plugin receives this specific message from <strong>FAR manager</strong>
  version 1.70 build 1663 and higher while playing keyboard macro.</font>
</td>
</tr>
</table>
    </div>

    <div class=dfn>Event</div>
    <div class=dfndescr> Event information. The format of this member depends
on the event type specified by the <strong>EventType</strong> member.
    </div>
</div>

<div class=see>See also:</div><div class=seecont>
<a href="key_event_record.html">KEY_EVENT_RECORD</a>,
<a href="mouse_event_record.html">MOUSE_EVENT_RECORD</a>,
<a href="window_buffer_size_record.html">WINDOW_BUFFER_SIZE_RECORD</a>,
<a href="menu_event_record.html">MENU_EVENT_RECORD</a>,
<a href="focus_event_record.html">FOCUS_EVENT_RECORD</a>,
<a href="peekconsoleinput.html">PeekConsoleInput</a>,
<a href="readconsoleinput.html">ReadConsoleInput</a>,
<a href="writeconsoleinput.html">WriteConsoleInput</a>
</div>

</body>
</html>